package com.yangxiangrice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yangxiangrice.mapper.SeedHoldMapper;
import com.yangxiangrice.pojo.SeedHold;
import com.yangxiangrice.pojo.SeedList;
import com.yangxiangrice.service.SeedHoldService;
import com.yangxiangrice.service.SeedListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @author: shixiaojian
 * @date: 2021年11月16日 17:51
 */
@Service
public class SeedHoldServiceImpl extends ServiceImpl<SeedHoldMapper, SeedHold> implements SeedHoldService {
    @Autowired
    SeedHoldMapper seedHoldMapper;

    @Override
    public IPage<SeedHold> seletePage(IPage<SeedHold> page, QueryWrapper wrapper) {
        return seedHoldMapper.selectPage(page, wrapper);
    }

    @Override
    public Integer getPurchaseNum(String seedName) {
        return seedHoldMapper.getPurchaseNum(seedName);
    }
}
